package Test1224;

public class Test03 {
    public static void main(String[] args) {
        // 统计有arr中多少个偶数
        int[] arr = {6, 1, 7, 4, 3};
        int i=0;
        for (int num : arr) {
            if (num%2==0){
            i++;}
        }
        System.out.println("偶数一共有"+i+"个");

    }
}
